package com.dhb.pattern.decorator;

/**
 * 功能描述：加火腿装饰器,增强基础装饰器
 * 创建人：citymoon
 * 创建日期：2019/5/25
 */
public class BattercakeSausageDecorator extends BattercakeDecorator {
    public BattercakeSausageDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    public void doSomething() {

    }

    @Override
    public String getMsg() {
        return super.getMsg() + "+1火腿";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 2;
    }
}
